package hcn.protocol.brandnew.dengji.zaiyuan;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;


/**
 * 医生住院科室查询 - ODS_02090004_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class GetDocDepartmentResponse {

    /**
     * 返回数据List
     */
    @XmlElementWrapper(name = "RequestLists")
    @XmlElement(name = "RequestList")
    private List<RequestList> requestLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class RequestList {

        /**
         * 科室代码
         */
        @XmlElement(name = "DeptCode")
        private String deptCode;
        /**
         * 科室名称
         */
        @XmlElement(name = "DeptName")
        private String deptName;

        @XmlElementWrapper(name = "GroupLists")
        @XmlElement(name = "GroupList")
        private List<Group> groupLists;
    }

    @XmlRootElement(
            name = "GroupList"
    )
    public static class Group{
        private String groupId;
        private String groupName;

        @XmlElement(name = "GroupId")
        public String getGroupId() {
            return groupId;
        }

        public void setGroupId(String groupId) {
            this.groupId = groupId;
        }

        @XmlElement(name = "GroupName")
        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }
    }

}
